package com.my.chapter10;

public class practice3 {
    public static void main(String[] args) {
        Outer3 o = new Outer3("Outer3.Inner3");
        Outer3.Inner3 i = o.get();
        System.out.println(i);
    }
}

class Outer3{
    private String content;
    public Outer3(String s){
        content = s;
    }
    class Inner3{
        @Override
        public String toString() {
            return content;
        }
    }
    public Inner3 get(){
        return new Inner3();
    }
}
